/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gameOnline_war;

import gameOnline.persistance.Player;

/**
 *
 * @author benjaminvolland
 */
public class PlayerSession {
    
    private static boolean logged = false;
    private static Player player = null;

    public static Player getPlayer() {
        return player;
    }

    public static void setPlayer(Player player) {
        if (null != player) {
            PlayerSession.player = player;
        }
    }

    public static boolean isLogged() {
        return logged;
    }

    public static void setlogged(boolean logged) {
        PlayerSession.logged = logged;
    }
}
